# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=clojure
pkgver=1.10.1
pkgrel=2
pkgdesc="The Clojure Programming Language"
url="https://clojure.org"
arch="all !armv7 !armhf !x86 !mips !mips64" # java
license="EPL-1.0"
makedepends="maven"
source="https://github.com/clojure/clojure/archive/clojure-$pkgver.tar.gz
	clojure"
depends="openjdk12"
builddir="$srcdir/clojure-clojure-$pkgver"
options="!check" #Check occurs in build

build() {
	mvn -Plocal package
}

package() {
	install -Dm644 "$builddir/clojure.jar" \
		"$pkgdir/usr/share/clojure/clojure.jar"

	install -Dm755 "$srcdir/clojure" \
		"$pkgdir/usr/bin/clojure"
}

sha512sums="942a9f9cb1f41c2df3eb904d8dd5406832d7078850694e14867cff5c2d7a871184adc4659aae50b88e27076c30d221b443a5c42a7d1cc419d4cf75637110075f  clojure-1.10.1.tar.gz
763079a57001c5d53c0c3fefc1a556a60c77983ddcece12b8cb6a419df1acba19e4ec194e08b6692b1ec1261abd7aa59d06513d9cff07cc0716e3b9f412f47f4  clojure"
